package com.study.service.a;

import com.study.Log;
import com.study.entity.User;

/**
 * @Author chenyeqing
 * @Date 2021/10/3 14:18
 */
public class UserServiceImpl implements UserService {

    @Log
    @Override
    public void register(User user) {
        System.out.printf("注册成功,账号信息为：%s\n", user);
        // throw new RuntimeException("一个异常");
    }

    @Override
    public boolean login(String name, String password) {
        System.out.printf("登录成功，账号为：%s，密码为：%s\n", name, password);
        return true;
    }
}
